import java.util.Scanner;

public class program13{
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("Enter the monthly saving amount: ");
        double save = in.nextDouble();
        double rate = 0.05 / 12;   // 月利率
        double total = 0;
        for (int i = 1; i <= 6; i++) {
            total = (total + save) * (1 + rate);
        }
        System.out.printf("After the sixth month, the account value is $%.2f%n", total);
    }
}